/**
 * 包装Iterator成DataIterator
 */
package com.flute.framework.data.impl;

import java.util.Iterator;

import com.flute.tools.data.DataIterator;

/**
 * @author Jazz
 * 
 */
public class RawDataIterator<DataRecord> implements DataIterator<DataRecord> {
	private Iterator<DataRecord> it;

	public RawDataIterator(Iterator<DataRecord> it) {
		this.it = it;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {

	}

	@Override
	public void close() {
		// do nothing
	}

	@Override
	public boolean hasNext() {
		return it.hasNext();
	}

	@Override
	public DataRecord next() {
		return it.next();
	}

	@Override
	public void reset() {
		//do nothing
	}

}
